package com.charger.trade.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.charger.PromoteOperations.domain.Client;
import com.charger.charger.domain.Charger;
import com.charger.chargingStation.domain.Chargingstation;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.charger.common.annotation.Excel;
import com.charger.common.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableLogic;
/**
 * 交易管理对象 chargingrecords
 * 
 * @author ruoyi
 * @date 2024-11-22
 */
@Data
public class Chargingrecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 充电记录Id */
    private Long chargingrecordsId;

    /** 充电单号 */
    @Excel(name = "充电单号")
    private String chargingOrderNumber;

    /** 客户id(外键) */
    @Excel(name = "客户id(外键)")
    private Long clientId;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private String PaymentMethod;

    /** 消费金额 */
    @Excel(name = "消费金额")
    private String expenses;

    /** 充电电量 */
    @Excel(name = "充电电量")
    private String ChargePower;

    /** 充电站id(外键) */
    @Excel(name = "充电站id(外键)")
    private Long chargingstationsId;

    /** 充电桩id(外键) */
    @Excel(name = "充电桩id(外键)")
    private Long chargerId;

    /** 交易状态 */
    @Excel(name = "交易状态")
    private String TransactionStatus;

    /** 充电时长 */
    @Excel(name = "充电时长")
    private String ChargingTime;

    /** 退款原因 */
    @Excel(name = "退款原因")
    private String refundReason;

    /** 退款资料 */
    @Excel(name = "退款资料")
    private String refundInformation;

    /** 逻辑删除 */
    @TableLogic
    private Long del;
    @TableField(exist = false)
    private Client client;
    @TableField(exist = false)
    private Charger charger;
    @TableField(exist = false)
    private Chargingstation chargingstation;

    public void setChargingrecordsId(Long chargingrecordsId) 
    {
        this.chargingrecordsId = chargingrecordsId;
    }

    public Long getChargingrecordsId() 
    {
        return chargingrecordsId;
    }
    public void setChargingOrderNumber(String chargingOrderNumber) 
    {
        this.chargingOrderNumber = chargingOrderNumber;
    }

    public String getChargingOrderNumber() 
    {
        return chargingOrderNumber;
    }
    public void setClientId(Long clientId) 
    {
        this.clientId = clientId;
    }

    public Long getClientId() 
    {
        return clientId;
    }
    public void setPaymentMethod(String PaymentMethod) 
    {
        this.PaymentMethod = PaymentMethod;
    }

    public String getPaymentMethod() 
    {
        return PaymentMethod;
    }
    public void setExpenses(String expenses) 
    {
        this.expenses = expenses;
    }

    public String getExpenses() 
    {
        return expenses;
    }
    public void setChargePower(String ChargePower) 
    {
        this.ChargePower = ChargePower;
    }

    public String getChargePower() 
    {
        return ChargePower;
    }
    public void setChargingstationsId(Long chargingstationsId)
    {
        this.chargingstationsId = chargingstationsId;
    }

    public Long getChargingstationsId()
    {
        return chargingstationsId;
    }
    public void setChargerId(Long chargerId) {
        this.chargerId = chargerId;
    }

    public Long getChargerId()
    {
        return chargerId;
    }
    public void setTransactionStatus(String TransactionStatus) 
    {
        this.TransactionStatus = TransactionStatus;
    }

    public String getTransactionStatus() 
    {
        return TransactionStatus;
    }
    public void setChargingTime(String ChargingTime) 
    {
        this.ChargingTime = ChargingTime;
    }

    public String getChargingTime() 
    {
        return ChargingTime;
    }
    public void setRefundReason(String refundReason)
    {
        this.refundReason = refundReason;
    }

    public String getRefundReason()
    {
        return refundReason;
    }
    public void setRefundInformation(String refundInformation)
    {
        this.refundInformation = refundInformation;
    }

    public String getRefundInformation()
    {
        return refundInformation;
    }
    public void setDel(Long del) 
    {
        this.del = del;
    }

    public Long getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("chargingrecordsId", getChargingrecordsId())
            .append("chargingOrderNumber", getChargingOrderNumber())
            .append("clientId", getClientId())
            .append("PaymentMethod", getPaymentMethod())
            .append("expenses", getExpenses())
            .append("ChargePower", getChargePower())
            .append("chargingstationsId", getChargingstationsId())
            .append("chargerId", getChargerId())
            .append("TransactionStatus", getTransactionStatus())
            .append("ChargingTime", getChargingTime())
            .append("refundReason", getRefundReason())
            .append("refundInformation", getRefundInformation())
            .append("del", getDel())
            .toString();
    }
}
